package com.itheima.domain;

import java.util.Date;

public class Trip {
    private Integer id;
    private String from_address;
    private String to_address;
    private Date start_time;
    private User user;//用户信息

    public Trip() {
    }

    public Trip(Integer id, String from_address, String to_address, Date start_time, User user) {
        this.id = id;
        this.from_address = from_address;
        this.to_address = to_address;
        this.start_time = start_time;
        this.user = user;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFrom_address() {
        return from_address;
    }

    public void setFrom_address(String from_address) {
        this.from_address = from_address;
    }

    public String getTo_address() {
        return to_address;
    }

    public void setTo_address(String to_address) {
        this.to_address = to_address;
    }

    public Date getStart_time() {
        return start_time;
    }

    public void setStart_time(Date start_time) {
        this.start_time = start_time;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "Trip{" +
                "id=" + id +
                ", from_address='" + from_address + '\'' +
                ", to_address='" + to_address + '\'' +
                ", start_time=" + start_time +
                ", user=" + user +
                '}';
    }
}
